#include "game.h"


void TestList()
{
	LST* plist = NULL;
	ListInit(&plist);
	ListPushBack(plist, 5);
	ListPushBack(plist, 6);
	ListPrint(plist);
	ListPushBack(plist, 7);
	//ListDestory(plist);
	ListPushFront(plist, 4);
	ListPrint(plist);
	ListpopFront(plist);
	ListPrint(plist);
	ListpopBack(plist);
	ListPrint(plist);
	LST* p = ListFind(plist, 6);
	if (p != plist)
	{
		ListInsert(p, 555);
		ListPrint(plist);
		ListErase(p);
	}
	ListPrint(plist);
}

int main()
{
	TestList();
	return 0;
}